﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bxas.Core
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
    public sealed class ColumnAttributes : System.Attribute
    {

        private string columnName;
        private bool isRequired;
        private string propertyType;

        public string ColumnName
        {
            get { return columnName; }
        }

        public bool IsRequired
        {
            get { return isRequired; }
        }

        public string PropertyType
        {
            get { return propertyType; }
        }

        public ColumnAttributes(string columnNameValue,
                                bool isRequiredValue,
                                string propertyTypeValue)
        {
            columnName = columnNameValue;
            isRequired = isRequiredValue;
            propertyType = propertyTypeValue;
        }

    }
}
